package com.zusmart.core.condition.support;

import java.lang.annotation.Annotation;

import com.zusmart.core.bean.BeanDefinition;
import com.zusmart.core.bean.BeanDefinitionRegistry;
import com.zusmart.core.condition.ConditionContext;
import com.zusmart.core.condition.ConditionFrom;
import com.zusmart.core.condition.ConditionType;
import com.zusmart.core.condition.Conditional;

public class DefaultConditionManager extends AbstractConditionManager {

	public DefaultConditionManager(BeanDefinitionRegistry beanDefinitionRegistry) {
		super(beanDefinitionRegistry);
	}

	@Override
	protected ConditionContext createConditionContext(BeanDefinition beanDefinition, Conditional conditional, Annotation annotation, ConditionFrom conditionFrom, ConditionType conditionType) {
		return new DefaultConditionContext(beanDefinition, conditional, annotation, conditionFrom, conditionType);
	}

}